<?php
include_once "Car.php";
include_once "CarX.php";
/**
 *Author:淡心心心
 *Date:2021/4/19
 *Time:19:43
 */


class BMW extends CarX
{
    private $name;

    public function __construct($name="宝马")
    {
        $this->name=$name;
    }

    public function driver()
    {
       echo $this->name;
    }

}